import dateUtils from '../utils/dateUtils'
const dataParser={
  parseSericeSpecifications(dataArray){
    return dataArray.map(element => {  
  try{
    if (typeof element.specification === "string") {
      element.specification = element.specification.split("/");
   }
    element.createat=dateUtils.formatCreateAt(element.createat)
    element.startservicetime=dateUtils.formatCreateAt(element.startservicetime)
    element.endservicetime=dateUtils.formatCreateAt(element.endservicetime)
}    
catch (error) {
     console.error();
}
     return element;
    });
  }
}
export default  dataParser;